// https://nuxt.com/docs/api/configuration/nuxt-config
import components from "unplugin-vue-components/vite";
import autoImport from "unplugin-auto-import/vite";
import { VarletUIResolver } from "unplugin-vue-components/resolvers";
export default defineNuxtConfig({
  devtools: { enabled: true },
  css: ["~/assets/css/index.css"],
  modules: ["@pinia/nuxt"],
  vite: {
    ssr: {
      noExternal: ["@varlet/ui", "md-editor-v3","ant-design-vue"],
    },
    plugins: [
      components({
        resolvers: [VarletUIResolver()],
      }),
      autoImport({
        resolvers: [VarletUIResolver({ autoImport: true })],
      }),
    ],
  },
  app: {
    head: {
      title: "雪貂神社-多端笔记同步系统",
      meta: [
        {
          name: "baidu-site-verification",
          content: "codeva-YoPUK9F3Hc",
        },
        {
          name: "msvalidate.01",
          content: "E576A0A8942C8C99C78FC30E89389420",
        },
      ],
      link: [
        {
          rel: "icon",
          type: "image/x-icon",
          href: "https://ferret.icu/api/public/avatar/1219460281",
        },
      ],
    },
  },
});
